<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>登录成功页面</title>
	<%-- 静态包含 base标签、css样式、jQuery文件 --%>
	<%@ include file="/pages/common/head.jsp"%>

	<style type="text/css">
	.tanchuang{
       position: fixed;
        top: 50%;
        left: 50%;
        width:300px;
        height: 200px;
        margin-left: -150px;
        margin-top: -100px;
        background-color: #6e6e6e;
        text-align: center;
        border-radius: 5px;
        display: inline;
    }
    .p1{
        margin-top: 40px;
        font-size: 26px;
        color: white;
        }
    .btn1{
        position: relative;
        top: 40px;
        border: 0;
        border-radius: 5px;
        width: 57px;
        height: 37px;
        background-color: #8ac31a;
        font-size: large;
        cursor: pointer;
    }
    </style>
</head>
<body>
<div id="header0">
    <img alt="loading" src="static/img/beauty.jpg" width="120px" height="100px"  align="middle" style="margin-top: -12px;cursor: pointer;border-radius: 5px">&nbsp;&nbsp;
    <a href="pages/user/first_page.jsp">首页</a>&nbsp;
    <a href="#">热销</a>&nbsp;
    <a href="pages/cart/cart.jsp">购物车</a>&nbsp;
    <%--如果已经登录，则显示登录成功之后的用户信息。--%>
    <c:if test="${not empty sessionScope.user}">
        <a href="orderServlet?action=list">我的订单</a>&nbsp;
        <a href="#">后台管理</a>&nbsp;
        <ul>
           <li
        </ul>
        <a href="userServlet?action=logout">注销</a>&nbsp;
    </c:if>
</div>


<div id="content1">
    <div class="login_form1">
        <div class="login_box">
            <div class="msg_cont">
                <b></b>
                <!--<span class="errorMsg">
									${ empty requestScope.msg ? "请输入用户名和密码":requestScope.msg }
								</span>
								-->
            </div>
            <div class="form">
                <form action="userServlet" method="post">
                    <h2 style="color:white;font-weight: normal">登录</h2><br>
                    <h4 style="color:white;font-weight: normal">到现有的账户</h4><br>
                    <input type="hidden" name="action" value="login" />
                    <label>帐户名称：</label><br>
                    <label>
                        <input class="itxt" type="text" placeholder="请输入用户名"
                               name="username"
                               value="${requestScope.username}" />
                    </label>
                    <br/>
                    <br/>
                    <label>密码：</label><br>
                    <label>
                        <input class="itxt" type="password" placeholder="请输入密码"
                               name="password" />
                    </label>
                    <br/>
                    <br/>
                    <input type="submit" value="登录" class="button1"/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <button class="button1"> <a class="a" href="pages/user/regist.jsp">加入</a></button>
                </form>
            </div>
        </div>
    </div>
</div>


    <div id="denrutanchuang" class="tanchuang">
        <p class="p1">账号${sessionScope.user.username}登录成功!<br></p>
     <button class="btn1" onclick=shut()>确定</button>
   </div>
</body>
<script>
    var a= document.getElementById('denrutanchuang');
    function shut() {
        a.style.display='none';
    }
</script>
</html>